
//项目的webpack配置文件
const { defineConfig } = require("@vue/cli-service");

// import Path from "path"
const Path = require('path');

function Resolve(url) {
    return Path.resolve(__dirname, url);
}


module.exports = defineConfig({
    transpileDependencies: true,
    lintOnSave: false, //关闭eslint检查
    //配置公共的路径
    publicPath: "./",

    parallel: false,
    //配置输出目录的文件名
    outputDir: "web",
    //将打包的js  img   css 等文件归类放置到assetsDir 目录下
    assetsDir: "static",
    //修改默认打包的html的名称
    indexPath: "web.html",
    // 设置sass
    css: {
        loaderOptions: {
            sass: {
                // 这里的选项会传递给 sass-loader
                additionalData: `
        @import '@/assets/mixin.scss';
        @import '@/assets/variable.scss';
        `,
            },
        },
    },
    configureWebpack: {
        resolve: {
            alias: {
                "@": Resolve("./src"),
                "@views": Resolve("./src/views"),
                "@components": Resolve('./src/components'),
                "@utils": Resolve('./src/utils'),
                "@network": Resolve("./src/network")
            }
        },
        name:'mis旅游管理平台',
    }
});



